package org.crag.cafca.beans;

import java.sql.Timestamp;

import org.crag.cafca.logic.time.TimeLine;

/**
 * Class reprenting a user, as it is represented in the DB.  
 * @author Celien
 *
 */
public class User {
	private Long 		id; 
	private String 		name; 
	private String		username; 
	private String 		email;
	private String 		password;
	private Timestamp 	inscriptionDate; 
	private TimeLine 	timeline; 

	public User(String name, String email, String username, String password){
		this.name = name; 
		this.email = email; 
		this.username = username; 
		this.password = password; 
	}
	
	public User(String name, String email, String username, String password, TimeLine timeline){
		this.name = name; 
		this.email = email; 
		this.username = username; 
		this.password = password; 
		this.timeline = timeline; 
	}
	
	public User(){
		
	}

	/*Getters and Setters*/
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Timestamp getInscriptionDate() {
		return inscriptionDate;
	}

	public void setInscriptionDate(Timestamp inscriptionDate) {
		this.inscriptionDate = inscriptionDate;
	}

	public TimeLine getTimeline() {
		return timeline;
	}

	public void setTimeline(TimeLine timeline) {
		this.timeline = timeline;
	}

}
